-- GENERATED SPELL FOR [Bloodfury Ripper] --


function spell0_12579(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_12579', 646, 1)
end

function spell1_12579(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12579', 15000, 1)
end

function Sorts_12579(pUnit, Event)
local choix_sorts_12579 = math.random(0, 1)
if choix_sorts_12579 == 0 then
pUnit:RegisterEvent('spell0_12579', 1, 1)
end
if choix_sorts_12579 == 1 then
pUnit:RegisterEvent('spell1_12579', 1, 1)
end
end

function mob12579_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12579', math.random(1500, 3000), 1)
end

function mob12579_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12579_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12579_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12579, 1, 'mob12579_Action')
RegisterUnitEvent(12579, 2, 'mob12579_Leave')
RegisterUnitEvent(12579, 3, 'mob12579_Kill')
RegisterUnitEvent(12579, 4, 'mob12579_Die')
